#pragma once

#include "../_inc_app/CtrlButton.h"

// CWndPlayer

#define _MOVE_FRAME					0
#define _MOVE_KEY_FRAME				1
#define _STEP_FORWARD_ACTION		_MOVE_FRAME

class CWndPlayer : public CWnd
{
	DECLARE_DYNAMIC(CWndPlayer)

private:
	CToolTipCtrl	m_ToolTipCtrl;

	CCtrlButton		m_btnPlay;
	CCtrlButton		m_btnBackPlay;
	CCtrlButton		m_btnPause;
	CCtrlButton		m_btnStop;
	CCtrlButton		m_btnStepPrev;
	CCtrlButton		m_btnStepNext;
	CCtrlButton		m_btnNextFile;
	CCtrlButton		m_btnPrevFile;
	CCtrlButton		m_btnStepPrevKF;
	CCtrlButton		m_btnStepNextKF;

	int m_nMode;

	CStringArray m_sarrText;

	void LoadText();

public:
	CWndPlayer();
	virtual ~CWndPlayer();

protected:
	DECLARE_MESSAGE_MAP()
	afx_msg long OnCtlMessage(UINT wParam, LONG lParam);
	afx_msg void OnPaint();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
public:	
	virtual BOOL PreTranslateMessage(MSG* pMsg);

	void SetPlayStatus(BOOL bPlay);
	void RefreshLang();
};


